function onDateChange(kind,name,input){
  try{
    var form=input.form;
    var vday    =form.elements[name+"_day"].value;
    var vmonth  =form.elements[name+"_month"].options[form.elements[name+"_month"].selectedIndex].value;
    var vyear   =form.elements[name+"_year"].value;
    var vhour       = "00";
    if(form.elements[name+"_hours"]){
      vhour   =form.elements[name+"_hours"].value;
    }
    var vminute     = "00";
    if(form.elements[name+"_minutes"]){
      vminute =form.elements[name+"_minutes"].value;
    }
    form.elements[name].value=vyear+"-"+vmonth+"-"+vday+" "+vhour+":"+vminute;
  }catch(e){
    logging("Error onDateDayChange:"+e.message);
  }
}

function showTime(object,name){
  try{
    var timeInputs=getElement(name);
    object.style.display="none";
    timeInputs.style.display="inline";
  }catch(e){
    logging("Error showTime:"+e.message);
  }
}